package gameUI;

import java.awt.image.BufferedImage;
import java.io.IOException;

import javax.imageio.ImageIO;

/**
 * @author ASUS
 *图片获取工具类
 */
public class ImageTools {
	
	public static BufferedImage getimage(String path) {
		
		try {
			BufferedImage img = ImageIO.read(ImageTools.class.getResource(path));
			return img;
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		return null;
	}
}
